package com.bw.kotlindemo.kotlin.model.net

import okhttp3.Interceptor
import okhttp3.Response

/**
 * desc:
 * create by xushaodong on 2023/4/5
 */
class KHeadInterceptor :Interceptor{
    override fun intercept(chain: Interceptor.Chain): Response {
        val request = chain.request()
        val newRequest = request.newBuilder()
            .addHeader("userId", "111")
            .addHeader("sessionId", "1680504448878111")
            .build()
        return chain.proceed(newRequest)
    }
}